package com.qa.common;

/**
 * @author 侯瑞阳
 * @Desc 相应前端的响应码
 */
public enum ResponseCodeEnum {
    // 成功
    SUCCESS(200, "SUCCESS"),
    // 失败
    ERROR(500, "ERROR");
    private final int code;
    private final String desc;

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ResponseCodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
